import { StackNavigator } from 'react-navigation';
import STRING from '../const_string_zh_CN';
import MePage from '../pages/main_pages/me_tab_page';
import AboutMooc from '../pages/me/about_mooc'
import Help from '../pages/me/help'
import SET from '../pages/me/setting'
import ModifPass from '../pages/me/modify_password'
const MeNavigationOptions = {
    headerTitle: STRING.me_page_title,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    },
}

const AboutMoocOptions = {
    headerTitle: STRING.about_mooc,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    }
}
const SettingOptions = {
    headerTitle: STRING.setting,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    }
}
const ModifyOptions = {
    headerTitle: STRING.modify_password,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    }
}
const HelpOptions = {
    headerTitle: STRING.help_feedback,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    }
}
const MOOCMeStackNavigator = StackNavigator({
    MeTab: { screen: MePage, navigationOptions: MeNavigationOptions },
    AboutMOOC: { screen: AboutMooc, navigationOptions: AboutMoocOptions },
    HELP: { screen: Help, navigationOptions: HelpOptions },
    SettIng: { screen: SET, navigationOptions: SettingOptions },
    ModifyPassword: { screen: ModifPass, navigationOptions: ModifyOptions }

}, {
        //headerMode: 'none'
    });

export default MOOCMeStackNavigator;
